﻿<script type="text/javascript">
    $(function () {
        $("input[name=t0_typ]").change(function () {
            //alert($("input[name=c_type]:checked").val());
            if ($("input[name=t0_typ]:checked").val() == 1) {
                $("#td1").show();
                $("#td2").hide();
            }
            if ($("input[name=t0_typ]:checked").val() == 2) {
                $("#td1").hide();
                $("#td2").show();
            }
        })
    })
</script>
@using (Html.BeginForm("CorporationSave", "Home", FormMethod.Post, new { id = "CorporationForm" }))
{   
    <div id="nlt1" style="display: block;">
        <div class="c_form">
            <table width="98%" border="0" cellspacing="1">
                <tr>
                    <td width="100%" align="center" colspan="2">
                        <input type="radio" name="t0_typ" value="1" checked="checked" />企业
                        <input type="radio" name="t0_typ" value="2" />个体工商户<br />
                    </td>
                </tr>
                <tr id="tr1">
                    <td width="80px" align="right" id="td1">
                        <span>*</span>公司名称<br />
                    </td>
                    <td width="80px" align="right" id="td2" style="display:none;">
                        <span>*</span>企业主姓名
                    </td>
                    <td align="left">
                        <input type="text" name="t0_corporation_name" id="t0_corporation_name" class="inputText required" />
                    </td>
                </tr>
                <tr id="tr2" style="display: none;">
                    <td align="right">
                        <span>*</span>企业主姓名
                    </td>
                    <td align="left">
                        <input type="text" name="t0_corporation_owner" id="t0_corporation_owner" class="inputText" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>经营地址
                    </td>
                    <td align="left">
                        <select class="select_box required province" style="width:60px" name="t0_address_province" id="t0_address_province" title="@(Model == null ? "" : Model["Province"])">
                        </select>
                        &nbsp;
                        <select class="select_box required city" style="width:60px" name="t0_address_city" id="t0_address_city" title="@(Model == null ? "" : Model["City"])">
                        </select>
                        &nbsp;
                        <select class="select_box required district" style="width:60px" name="t0_address_district" id="t0_address_district" title="@(Model == null ? "" : Model["City"])">
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <td align="left">
                        <input type="text" name="t0_address_remark" id="t0_address_remark" class="inputText" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>从事行业
                    </td>
                    <td align="left">
                        <label>
                            <select class="inputText required" name="t0_business_type" id="t0_business_type">
                                @Html.Partial("~/Views/Shared/selectControl.ascx", HanhuaMicroCredit.BLL.IbddBLL.GetList(1003, true))
                            </select>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>年销售额
                    </td>
                    <td align="left">
                        <input type="text" name="t0_annual_sales" id="t0_annual_sales" class="inputText number required" />元
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>经营年限
                    </td>
                    <td align="left">
                        <input type="text" name="t0_company_age" id="t0_company_age" class="inputText number required" />年
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>贷款金额
                    </td>
                    <td align="left">
                        <input type="text" name="t0_loan_amount" id="t0_loan_amount" class="inputText number required" />元
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>贷款期限
                    </td>
                    <td align="left">
                        <input type="text" name="t0_loan_period" id="t0_loan_period" class="inputText digits required" />月
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>贷款用途
                    </td>
                    <td align="left">
                        <select class="inputText required" name="t0_loan_use" id="t0_loan_use">
                            @Html.Partial("~/Views/Shared/selectControl.ascx", HanhuaMicroCredit.BLL.IbddBLL.GetList(1001, true))
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <span>*</span>手机号码
                    </td>
                    <td align="left">
                        <input type="text" name="t0_contact_phone" id="t0_contact_phone" class="inputText required isMobile" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        备用号码
                    </td>
                    <td align="left">
                        <input type="text" name="t0_contact_phone2" id="t0_contact_phone2" class="inputText" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table width="100%" border="0" cellspacing="1" style="padding-top: 14px;">
                            <tr>
                                <td>
                                    （标<span>*</span>为必填项目）
                                </td>
                                <td>
                                    <input type="image" name="ctl" src="/images/in_btn.gif" style="border-width: 0px;"
                                        class="btn" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
}